﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Microsoft.EntityFrameworkCore;
using Digitalmes.Model.WmsManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.WmsManagement.InboundVMs
{
    public partial class InboundBatchVM : BaseBatchVM<Inbound, Inbound_BatchEdit>
    {
        public InboundBatchVM()
        {
            ListVM = new InboundListVM();
            LinkedVM = new Inbound_BatchEdit();
        }

        public override bool DoBatchEdit()
        {
            
            return base.DoBatchEdit();
        }
    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Inbound_BatchEdit : BaseVM
    {

        
        [Display(Name = "_Model._Inbound._SheetId")]
        public string SheetId { get; set; }
        [Display(Name = "_Model._Inbound._SheetNo")]
        public string SheetNo { get; set; }
        [Display(Name = "_Model._Inbound._InMode")]
        public InOutEnum? InMode { get; set; }
        [Display(Name = "_Model._Inbound._Material")]
        public long? MaterialId { get; set; }
        [Display(Name = "_Model._Inbound._InQty")]
        public decimal? InQty { get; set; }
        [Display(Name = "_Model._Inbound._InBatch")]
        public string InBatch { get; set; }
        [Display(Name = "_Model._Inbound._InboundDate")]
        public DateTime? InboundDate { get; set; }
        [Display(Name = "_Model._Inbound._InOperator")]
        public string InOperator { get; set; }
        [Display(Name = "_Model._Inbound._SupplierId")]
        public long? SupplierId { get; set; }
        [Display(Name = "_Model._Inbound._SupplierName")]
        public string SupplierName { get; set; }

        protected override void InitVM()
        {
           
        }
    }

}